package com.jiangli.service;

import com.jiangli.dto.*;
import com.jiangli.entity.Ingredient;
import com.jiangli.result.PageResult;
import com.jiangli.vo.DishVO;

import java.util.List;

public interface AdminDishService {
    void addDish(DishDTO dishDTO);

    void deleteDish(Long id);

    void updateDish(DishUpdateDTO dishUpdateDTO);

    PageResult getDishByPage(DishPageQueryDTO dishPageQueryDTO);

    DishVO getDishDetial(Long id);

    void addIngredient(DishIngredientDTO dishIngredientDTO);

    PageResult getUserRating(Long id,Long page,Long pageSize);

    void addFlavor(DishFlavorDTO dishFlavorDTO);

    List<Ingredient> getIngredients(String ingredientName);
}
